package com.hbnu.reflect;

/**
 * @author kittychen
 * @since 2025-10-20 17:22
 */
public class Person {
    private String name;
    private int age;
    public String address;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    private Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void sayHi() {
        System.out.println("Hi, I am kittychen" );
    }

    private String method(String msg) {
        System.out.println("私有方法");
        return msg;
    }
}
